<div >
Create Message
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'msg-Create_Msg-form',
	
	'enableAjaxValidation'=>false,
)); ?>

	

	
	<div id="android_msg">
		
	<div class="row">
		<?php echo $form->labelEx($model->andr,'subject'); ?>
		<?php echo $form->textField($model->andr,'subject'); ?>
		<?php echo $form->error($model->andr,'subject'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model->andr,'content'); ?>
		<?php echo $form->textField($model->andr,'content'); ?>
		<?php echo $form->error($model->andr,'content'); ?>
	</div>

	

	</div>

	
	<div id="iphone_msg">

	<div id="rich"> 
		<h2 onclick="change_msg_type('rich')">Rich notification</h2>
	<div class="row">
		<?php //echo $form->labelEx($model->iphone,'rich_notification_subject'); ?>
	Subject:	<?php echo $form->textField($model->iphone,'rich_notification_subject'); ?>
		<?php echo $form->error($model->iphone,'rich_notification_subject'); ?>
	</div>

	<div class="row" >
		<?php //echo $form->labelEx($model->iphone,'rich_notification_content'); ?>
		<span>Rich notification content</span> </BR>  
		<?php echo $form->textArea($model->iphone,'rich_notification_content',array('placeholder'=>'Go ahead, take it for a test drive.Highlight some text and clock some buttons.')); ?>
		<?php  Yii::app()->clientScript->registerCoreScript('jquery.ui');    
    $cs=Yii::app()->getClientScript();
    $cs->registerCssFile($cs->getCoreScriptUrl().'/jui/css/base/jquery-ui.css');
    	echo $form->error($model->iphone,'rich_notification_content'); ?>
	</div>
	</div>

	<div id="base" onclick="change_msg_type('base')"> <h2>Basic notification</h2> </BR>
	<div class="row">
		<?php //echo $form->labelEx($model->iphone,'notification_content'); ?>
		Content:
		<?php echo $form->textField($model->iphone,'notification_content', array('onkeyup'=>'char_remain_update()')); ?>
		<span id="char_remain">100<span>
		<?php echo $form->error($model->iphone,'notification_content'); ?>
	</div>
	</div>
	<input  type=hidden name="msg_type" id="msg_type" value="base"/>
	



	</div>
	<div id='blckbr_msg'>
		<div class="row">
		<?php echo $form->labelEx($model->blckb,'notification_content'); ?>
		<?php echo $form->textField($model->blckb,'notification_content'); ?>
		<?php echo $form->error($model->blckb,'notification_content'); ?>
	</div>
	</div>


	<div class="row buttons" style="display:none">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->